package com.gu.service;

import com.github.pagehelper.PageInfo;
import com.gu.VO.ServerResponse;
import com.gu.VO.UpdatePassword;
import com.gu.entity.UserDO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.service
 * @ClassName: UserService
 * @Author: gusongliao
 * @Description: 系统用户服务层
 * @createDate 2021/01/27 15:59
 */
public interface UserService {

    PageInfo userList(Integer pageNum, Integer pageSize,String selectUserParam);

    ServerResponse updateUserStatus(UserDO userDO);

    ServerResponse deleteUserById(Integer id);

    ServerResponse insert(UserDO entity);

    ServerResponse selectUserByUserPhone(String userPhone, String password, HttpServletRequest request, HttpServletResponse response);

    ServerResponse selectUserByIdCard(String idCard,String userName);

    /**
     * 主动修改密码
     * @param updatePassword
     * @return
     */
    ServerResponse updateUserPassword(UpdatePassword updatePassword);

    /**
     * 忘记密码
     * @param updatePassword
     * @return
     */
    ServerResponse forgetUserPassword(UpdatePassword updatePassword);

    ServerResponse updateUserBanReason(UserDO userDO);

    ServerResponse updateAllUserInfo(UserDO userDO);

    UserDO getUserById(Integer id);
}
